{% extends "admin/change_form.html" %}
{% load i18n %}

{% block inline_field_sets %}
{{ block.super }}
{% if object_id %}
<fieldset class="module mb-3 container-fluid" id="fieldset-3" style="background:transparent">
<h1 class="text-capitalize">{% trans "related" %}</h1>
<div class="row">
  <div class="col-form-label col-3">
     <a href="{{ request.prefix }}/data/input/operationresource/?operation={{ object_id | urlencode }}&noautofilter">
     {% trans "operation resources"|capfirst %}&nbsp;<i class="fa fa-caret-right"></i></a>
  </div>
</div>
<div class="row">
  <div class="col-form-label col-3">
     <a href="{{ request.prefix }}/data/input/operationmaterial/?operation={{ object_id | urlencode }}&noautofilter">
     {% trans "operation materials"|capfirst %}&nbsp;<i class="fa fa-caret-right"></i></a>
  </div>
</div>
<div class="row">
  <div class="col-form-label col-3">
     <a href="{{ request.prefix }}/data/input/operation/?owner={{ object_id | urlencode }}&noautofilter">
     {% trans "suboperations"|capfirst %}&nbsp;<i class="fa fa-caret-right"></i></a>
  </div>
</div>
<div class="row">
  <div class="col-form-label col-3">
     <a href="{{ request.prefix }}/data/input/operationdependency/?operation={{ object_id | urlencode }}&noautofilter">
     {% trans "dependencies"|capfirst %}&nbsp;<i class="fa fa-caret-right"></i></a>
  </div>
</div>
<div class="row">
  <div class="col-form-label col-3">
     <a href="{{ request.prefix }}/data/input/operationdependency/?blockedby={{ object_id | urlencode }}&noautofilter">
     {% trans "blocked by operation"|capfirst %}&nbsp;<i class="fa fa-caret-right"></i></a>
  </div>
</div>
</fieldset>
{% endif %}
{% endblock %}
